Integrand size = 28, antiderivative size = 193 \[ \int \frac {\left (a+b x^2\right )^2}{\sqrt {e x} \left (c+d x^2\right )^{3/2}} \, dx=\frac {(b c-a d)^2 \sqrt {e x}}{c d^2 e \sqrt {c+d x^2}}+\frac {2 b^2 \sqrt {e x} \sqrt {c+d x^2}}{3 d^2 e}-\frac {\left (5 b^2 c^2-6 a b c d-3 a^2 d^2\right ) \left (\sqrt {c}+\sqrt {d} x\right ) \sqrt {\frac {c+d x^2}{\left (\sqrt {c}+\sqrt {d} x\right )^2}} \operatorname {EllipticF}\left (2 \arctan \left (\frac {\sqrt [4]{d} \sqrt {e x}}{\sqrt [4]{c} \sqrt {e}}\right ),\frac {1}{2}\right )}{6 c^{5/4} d^{9/4} \sqrt {e} \sqrt {c+d x^2}} \]
[Out]
Time = 0.11 (sec) , antiderivative size = 193, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {474, 470, 335, 226} \[ \int \frac {\left (a+b x^2\right )^2}{\sqrt {e x} \left (c+d x^2\right )^{3/2}} \, dx=-\frac {\left (\sqrt {c}+\sqrt {d} x\right ) \sqrt {\frac {c+d x^2}{\left (\sqrt {c}+\sqrt {d} x\right )^2}} \left (-3 a^2 d^2-6 a b c d+5 b^2 c^2\right ) \operatorname {EllipticF}\left (2 \arctan \left (\frac {\sqrt [4]{d} \sqrt {e x}}{\sqrt [4]{c} \sqrt {e}}\right ),\frac {1}{2}\right )}{6 c^{5/4} d^{9/4} \sqrt {e} \sqrt {c+d x^2}}+\frac {\sqrt {e x} (b c-a d)^2}{c d^2 e \sqrt {c+d x^2}}+\frac {2 b^2 \sqrt {e x} \sqrt {c+d x^2}}{3 d^2 e} \]
[In]
[Out]
Rule 226
Rule 335
Rule 470
Rule 474
Rubi steps \begin{align*} \text {integral}& = \frac {(b c-a d)^2 \sqrt {e x}}{c d^2 e \sqrt {c+d x^2}}-\frac {\int \frac {\frac {1}{2} \left (-2 a^2 d^2+(b c-a d)^2\right )-b^2 c d x^2}{\sqrt {e x} \sqrt {c+d x^2}} \, dx}{c d^2} \\ & = \frac {(b c-a d)^2 \sqrt {e x}}{c d^2 e \sqrt {c+d x^2}}+\frac {2 b^2 \sqrt {e x} \sqrt {c+d x^2}}{3 d^2 e}-\frac {\left (5 b^2 c^2-6 a b c d-3 a^2 d^2\right ) \int \frac {1}{\sqrt {e x} \sqrt {c+d x^2}} \, dx}{6 c d^2} \\ & = \frac {(b c-a d)^2 \sqrt {e x}}{c d^2 e \sqrt {c+d x^2}}+\frac {2 b^2 \sqrt {e x} \sqrt {c+d x^2}}{3 d^2 e}-\frac {\left (5 b^2 c^2-6 a b c d-3 a^2 d^2\right ) \text {Subst}\left (\int \frac {1}{\sqrt {c+\frac {d x^4}{e^2}}} \, dx,x,\sqrt {e x}\right )}{3 c d^2 e} \\ & = \frac {(b c-a d)^2 \sqrt {e x}}{c d^2 e \sqrt {c+d x^2}}+\frac {2 b^2 \sqrt {e x} \sqrt {c+d x^2}}{3 d^2 e}-\frac {\left (5 b^2 c^2-6 a b c d-3 a^2 d^2\right ) \left (\sqrt {c}+\sqrt {d} x\right ) \sqrt {\frac {c+d x^2}{\left (\sqrt {c}+\sqrt {d} x\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{d} \sqrt {e x}}{\sqrt [4]{c} \sqrt {e}}\right )|\frac {1}{2}\right )}{6 c^{5/4} d^{9/4} \sqrt {e} \sqrt {c+d x^2}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 11.12 (sec) , antiderivative size = 174, normalized size of antiderivative = 0.90 \[ \int \frac {\left (a+b x^2\right )^2}{\sqrt {e x} \left (c+d x^2\right )^{3/2}} \, dx=\frac {\sqrt {\frac {i \sqrt {c}}{\sqrt {d}}} x \left (-6 a b c d+3 a^2 d^2+b^2 c \left (5 c+2 d x^2\right )\right )+i \left (-5 b^2 c^2+6 a b c d+3 a^2 d^2\right ) \sqrt {1+\frac {c}{d x^2}} x^{3/2} \operatorname {EllipticF}\left (i \text {arcsinh}\left (\frac {\sqrt {\frac {i \sqrt {c}}{\sqrt {d}}}}{\sqrt {x}}\right ),-1\right )}{3 c \sqrt {\frac {i \sqrt {c}}{\sqrt {d}}} d^2 \sqrt {e x} \sqrt {c+d x^2}} \]
[In]
[Out]
Time = 3.71 (sec) , antiderivative size = 259, normalized size of antiderivative = 1.34
method | result | size |
elliptic | \(\frac {\sqrt {e x \left (d \,x^{2}+c \right )}\, \left (\frac {x \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}{d^{2} c \sqrt {\left (x^{2}+\frac {c}{d}\right ) d e x}}+\frac {2 b^{2} \sqrt {d e \,x^{3}+c e x}}{3 d^{2} e}+\frac {\left (\frac {b \left (2 a d -b c \right )}{d^{2}}+\frac {a^{2} d^{2}-2 a b c d +b^{2} c^{2}}{2 d^{2} c}-\frac {b^{2} c}{3 d^{2}}\right ) \sqrt {-c d}\, \sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {2 \left (x -\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, F\left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{d \sqrt {d e \,x^{3}+c e x}}\right )}{\sqrt {e x}\, \sqrt {d \,x^{2}+c}}\) | \(259\) |
default | \(\frac {3 \sqrt {2}\, \sqrt {-c d}\, \sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, F\left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) a^{2} d^{2}+6 \sqrt {2}\, \sqrt {-c d}\, \sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, F\left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) a b c d -5 \sqrt {2}\, \sqrt {-c d}\, \sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, F\left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) b^{2} c^{2}+4 b^{2} c \,d^{2} x^{3}+6 x \,a^{2} d^{3}-12 x a b c \,d^{2}+10 x \,b^{2} c^{2} d}{6 \sqrt {d \,x^{2}+c}\, c \sqrt {e x}\, d^{3}}\) | \(341\) |
risch | \(\frac {2 b^{2} x \sqrt {d \,x^{2}+c}}{3 d^{2} \sqrt {e x}}+\frac {\left (-\frac {4 b^{2} c \sqrt {-c d}\, \sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {2 \left (x -\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, F\left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{d \sqrt {d e \,x^{3}+c e x}}+\frac {6 a b \sqrt {-c d}\, \sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {2 \left (x -\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, F\left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{\sqrt {d e \,x^{3}+c e x}}+\left (3 a^{2} d^{2}-6 a b c d +3 b^{2} c^{2}\right ) \left (\frac {x}{c \sqrt {\left (x^{2}+\frac {c}{d}\right ) d e x}}+\frac {\sqrt {-c d}\, \sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {2 \left (x -\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, F\left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{2 c d \sqrt {d e \,x^{3}+c e x}}\right )\right ) \sqrt {e x \left (d \,x^{2}+c \right )}}{3 d^{2} \sqrt {e x}\, \sqrt {d \,x^{2}+c}}\) | \(438\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 148, normalized size of antiderivative = 0.77 \[ \int \frac {\left (a+b x^2\right )^2}{\sqrt {e x} \left (c+d x^2\right )^{3/2}} \, dx=-\frac {{\left (5 \, b^{2} c^{3} - 6 \, a b c^{2} d - 3 \, a^{2} c d^{2} + {\left (5 \, b^{2} c^{2} d - 6 \, a b c d^{2} - 3 \, a^{2} d^{3}\right )} x^{2}\right )} \sqrt {d e} {\rm weierstrassPInverse}\left (-\frac {4 \, c}{d}, 0, x\right ) - {\left (2 \, b^{2} c d^{2} x^{2} + 5 \, b^{2} c^{2} d - 6 \, a b c d^{2} + 3 \, a^{2} d^{3}\right )} \sqrt {d x^{2} + c} \sqrt {e x}}{3 \, {\left (c d^{4} e x^{2} + c^{2} d^{3} e\right )}} \]
[In]
[Out]
\[ \int \frac {\left (a+b x^2\right )^2}{\sqrt {e x} \left (c+d x^2\right )^{3/2}} \, dx=\int \frac {\left (a + b x^{2}\right )^{2}}{\sqrt {e x} \left (c + d x^{2}\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {\left (a+b x^2\right )^2}{\sqrt {e x} \left (c+d x^2\right )^{3/2}} \, dx=\int { \frac {{\left (b x^{2} + a\right )}^{2}}{{\left (d x^{2} + c\right )}^{\frac {3}{2}} \sqrt {e x}} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (a+b x^2\right )^2}{\sqrt {e x} \left (c+d x^2\right )^{3/2}} \, dx=\int { \frac {{\left (b x^{2} + a\right )}^{2}}{{\left (d x^{2} + c\right )}^{\frac {3}{2}} \sqrt {e x}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (a+b x^2\right )^2}{\sqrt {e x} \left (c+d x^2\right )^{3/2}} \, dx=\int \frac {{\left (b\,x^2+a\right )}^2}{\sqrt {e\,x}\,{\left (d\,x^2+c\right )}^{3/2}} \,d x \]
[In]
[Out]